#ifdef Considered Harmful, or Portability Experience with C News
نویسندگان
چکیده
We believe that a C programmer’s impulse to use #ifdef in an attempt at portability is usually a mistake. Portability is generally the result of advance planning rather than trench warfare involving #ifdef. In the course of developing C News on different systems, we evolved various tactics for dealing with differences among systems without producing a welter of #ifdefs at points of difference. We discuss the alternatives to, and occasional proper use of, #ifdef.
منابع مشابه
On the Role of Program Comprehension in Embedded Systems
Today, we are surrounded by computers. However, only a minor part is working stations we might think of. The major part, about 98 %, are embedded systems [15], for example PDAs, mobile phones, sensors, or credit cards. For embedded systems, resource constraints regarding memory capacity and performance are characteristic. Furthermore, the hardware is heterogeneous, which leads to challenges reg...
متن کاملDiscipline Matters: Refactoring of Preprocessor Directives in the #ifdef Hell
The C preprocessor is used in many C projects to support variability and portability. However, researchers and practitioners criticize the C preprocessor because of its negative effect on code understanding and maintainability and its error proneness. More importantly, the use of the preprocessor hinders the development of tool support that is standard in other languages, such as automated refa...
متن کاملFrom Text Summarisation to Style-Specific Summarisation for Broadcast News
In this paper we report on a series of experiments investigating the path from text summarisation to style-specific summarisation of spoken news stories. We show that the portability of traditional text summarisation features to broadcast news is dependent on the diffusiveness of the information in the broadcast news story. An analysis of two categories of news stories (containing only read spe...
متن کاملبررسی نگرش پرسنل بهداشتی و درمانی نسبت به مهارت انتقال خبر بد در بخش های زایمان و نوزادان
Breaking bad news emotionally affects both health professionals and patients. Breaking bad news is a sensitive issue for both health care providers and patients. It is generally believed that the patient’s adjustment can be affected by either a positive or a negative experience in this respect. This study aims to determine health care providers’ attitudes toward breaking bad news to parents in ...
متن کاملNews@hand: A Semantic Web Approach to Recommending News
We present News@hand, a news recommender system which applies Semantic Web technologies to describe and relate news contents and user preferences in order to produce enhanced recommendations. The multi-domain portability, the multi-media source applicability, and the addressing of some limitations of current recommender systems are the main benefits of our proposal.
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
دوره شماره
صفحات -
تاریخ انتشار 1992